package Day08.Demo03;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/23 9:54
 */
public class Demo03Student {
    public static void main(String[] args) {
        //设置一下教室,静态的，使用类名称进行调用
        Student.room = "101教室";
        Student one = new Student("郭靖",36);
        System.out.println("one的姓名："+one.getName());
        System.out.println("one的年龄："+one.getAge());
        System.out.println("one的教室："+Student.room);


        System.out.println("========================");
        Student two = new Student("黄蓉",22);
        System.out.println("two的姓名："+two.getName());
        System.out.println("two的年龄："+two.getAge());
        System.out.println("two的教室："+Student.room);



    }
}
